import '@shoelace-style/shoelace/dist/components/input/input.js';
import '@shoelace-style/shoelace/dist/components/button/button.js';
import {render} from './html.js';
import {interceptor} from "./scripts";

class Recommend extends HTMLElement {
    constructor() {
        super();
        this.attachShadow({ mode: 'open' });

        // 渲染组件
        render(this.shadowRoot, '');
    }


    connectedCallback() {//当自定义标签 已经 挂载到DOM树触发
        interceptor(this);  //可视区域渲染
    }
}


//注册自定义标签
window.customElements.define('menu-recommend', Recommend);
